home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / syscall / RCS / Sig_Pause.c,v < prev   
Encoding:
Text File  |  1992-02-09  |  2.1 KB  |  98 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.2.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     88.06.21.11.14.50;  author ouster;  state Exp;
  11. branches 1.2.1.1;
  12. next     ;
  13.  
  14. 1.2.1.1
  15. date     92.02.09.15.32.17;  author kupfer;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @Sig_Pause library routine.
  22. @
  23.  
  24.  
  25.  
  26. 1.2
  27. log
  28. @checked in with -k by kupfer at 92.02.09.15.31.40.
  29. @
  30. text
  31. @/* 
  32.  * Sig_Pause.c --
  33.  *
  34.  *    Source code for the Sig_Pause library procedure.
  35.  *
  36.  * Copyright 1988 Regents of the University of California
  37.  * Permission to use, copy, modify, and distribute this
  38.  * software and its documentation for any purpose and without
  39.  * fee is hereby granted, provided that the above copyright
  40.  * notice appear in all copies.  The University of California
  41.  * makes no representations about the suitability of this
  42.  * software for any purpose.  It is provided "as is" without
  43.  * express or implied warranty.
  44.  */
  45.  
  46. #ifndef lint
  47. static char rcsid[] = "$Header: Sig_Pause.c,v 1.2 88/06/21 11:14:50 ouster Exp $ SPRITE (Berkeley)";
  48. #endif not lint
  49.  
  50. #include <sprite.h>
  51. #include <status.h>
  52. #include <sig.h>
  53.  
  54.  
  55. /*
  56.  *----------------------------------------------------------------------
  57.  *
  58.  * Sig_Pause --
  59.  *
  60.  *      The "normal" Sig_Pause routine for user code.   This retries
  61.  *    the Sig_Pause in the event the return status is
  62.  *    GEN_INTERRUPTED_BY_SIGNAL since that return code means the process
  63.  *     was migrated during the Sig_Pause.
  64.  *
  65.  * Results:
  66.  *    An error code.
  67.  *
  68.  * Side effects:
  69.  *    The process is put to sleep awaiting a signal.
  70.  *
  71.  *----------------------------------------------------------------------
  72.  */
  73.  
  74. ReturnStatus
  75. Sig_Pause(sigHoldMask)
  76.     int    sigHoldMask;    /* The value that the mask of held signals is to be set
  77.                to while waiting for a signal to arrive. */
  78. {
  79.     ReturnStatus status;
  80.  
  81.     do {
  82.     status = Sig_RawPause(sigHoldMask);
  83.     } while (status == GEN_ABORTED_BY_SIGNAL);
  84.     return(status);
  85. }
  86. @
  87.  
  88.  
  89. 1.2.1.1
  90. log
  91. @Initial branch for Sprite server.
  92. @
  93. text
  94. @d17 1
  95. a17 1
  96. static char rcsid[] = "$Header: /sprite/src/lib/c/syscall/RCS/Sig_Pause.c,v 1.2 88/06/21 11:14:50 ouster Exp $ SPRITE (Berkeley)";
  97. @
  98.